Skip to content

feat(tests): STAKING precompile (stubs) with tests#17

Draft
pdobacz wants to merge 19 commits intomip4from
staking-precompile-tests
Draft

feat(tests): STAKING precompile (stubs) with tests#17
pdobacz wants to merge 19 commits intomip4from
staking-precompile-tests

Conversation

@pdobacz
Copy link
Collaborator

@pdobacz pdobacz commented Mar 13, 2026

Opening as draft, as I still would like to go through it and clean - at the very least.

But it is indicative of how large this is (even without any staking precompile logic except interface & simple error cases).

Branching off of mip4 for now, it served as a template for how the tests are structured, but staking precompile is just so much more complex that there are many more tools implemented to handle all that.

pdobacz added 19 commits March 13, 2026 17:10
Co-Authored-By: Claude <claude-sonnet-4-6>
Co-Authored-By: Claude claude-opus-4-6
Co-Authored-By: Claude claude-opus-4-6
Co-Authored-By: Claude claude-opus-4-6
Extract ExpectedOutcome dataclass with factory methods, add
_normalize() for parameterless function edge cases, and centralize
gas computation in scenario_call_code so callers no longer need to
manually calculate gas. Simplify resolve_outcome_pair by sorting
scenarios by priority and adding stipend threshold check.

Co-Authored-By: Claude claude-opus-4-6
Co-Authored-By: Claude claude-opus-4-6
Co-Authored-By: Claude claude-opus-4-6
Co-Authored-By: Claude claude-opus-4-6
Co-Authored-By: Claude <opus>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant